﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mechatronics.Robotics.Transports
{
    public delegate void DataReceivedEvent(byte[] data);

    public interface ITransport
    {
        void Connect();
        void Disconnect();
        void Send(byte[] data);
        byte[] Receive();
        byte[] Receive(int count);
        bool IsConnected { get; }
        DataReceivedEvent DataReceived { get; set; }
    }
}
